﻿using MC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Vision.Camera.HK;

namespace SASJL
{
    public static class MainConfig
    {
        public static CameraHK camera;
        public static MCLeisai mc;
        //public static RobotBase rbt;
        public static void Init()
        {
            bool rc = true;
            mc = new MCLeisai();
            mc.Init();
            
            camera = new CameraHK();
            rc = camera.OpenByIP("192.168.66.1", "192.168.66.10");
            if(rc==false)
            {
                MessageBox.Show("相机连接失败");
            }
        }

        public static void UInit()
        {
            camera.CloseCam();
        }
    }
}
